/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package raytracergui;

/**
 *
 * @author root
 */
public class Sphere {
    private String posX,posY,posZ;
    private String radius;
    private String matR, matG, matB, matDiffuse, matReflective, matSpecular;
    private String matDiffraction;
    private String nom;


    Sphere(String nom){
        this.nom = nom;
        this.posX = this.posY = this.posZ = "0";
        this.radius = "0";
        this.matR = this.matG = this.matB = this.matDiffuse =
                this.matReflective = this.matSpecular = this.matDiffraction = "0";
    }

    @Override
    public String toString(){
        return nom;
    }

    public void setPosition(String x, String y, String z){
        this.posX = x;
        this.posY = y;
        this.posZ = z;
    }

    public void setRadius(String radius){
        this.radius = radius;
    }

    public void setColor(String R, String G, String B){
        this.matR = R;
        this.matG = G;
        this.matB = B;
    }

    public void setMaterial(String R, String G, String B, String diffuse, String reflective, String specular, String diffraction){
        this.matR = R;
        this.matG = G;
        this.matB = B;
        this.matDiffuse     = diffuse;
        this.matReflective  = reflective;
        this.matSpecular    = specular;
        this.matDiffraction = diffraction;
    }

    public String getMatB() {
        return matB;
    }

    public String getMatDiffuse() {
        return matDiffuse;
    }

    public String getMatG() {
        return matG;
    }

    public String getMatR() {
        return matR;
    }

    public String getMatReflective() {
        return matReflective;
    }

    public String getMatSpecular() {
        return matSpecular;
    }

    public String getNom() {
        return nom;
    }

    public String getPosX() {
        return posX;
    }

    public String getPosY() {
        return posY;
    }

    public String getPosZ() {
        return posZ;
    }

    public String getRadius() {
        return radius;
    }

    public String getMatDiffraction() {
        return matDiffraction;
    }

    public void setMatB(String matB) {
        this.matB = matB;
    }

    public void setMatDiffraction(String matDiffraction) {
        this.matDiffraction = matDiffraction;
    }

    public void setMatDiffuse(String matDiffuse) {
        this.matDiffuse = matDiffuse;
    }

    public void setMatG(String matG) {
        this.matG = matG;
    }

    public void setMatR(String matR) {
        this.matR = matR;
    }

    public void setMatReflective(String matReflective) {
        this.matReflective = matReflective;
    }

    public void setMatSpecular(String matSpecular) {
        this.matSpecular = matSpecular;
    }

    public void setPosX(String posX) {
        this.posX = posX;
    }

    public void setPosY(String posY) {
        this.posY = posY;
    }

    public void setPosZ(String posZ) {
        this.posZ = posZ;
    }

    

}
